import { createApp } from "vue";
import DomesticNews from "./components/DomesticNews.vue";
import EntertainmentsNews from "./components/EntertainmentsNews.vue";
import FooterBar from "./components/FooterBar.vue";
import SportsNews from "./components/SportsNews.vue";
import TopHeader from "./components/TopHeader.vue";

const app = createApp(App);
//全局注册组件
app.component("TopHeader", TopHeader); 
app.component("SportsNews",SportsNews ); 
app.component("FooterBar", FooterBar);
app.component("EntertainmentsNews", EntertainmentsNews);
app.component("DomesticNews", DomesticNews);
//将 Vue 实例挂载到 id 为 app 的 div 标签上
app.mount("#app")